import Layout from '../views/layout/Layout'
const _import = require('./_import_' + process.env.NODE_ENV)
const MallMenu = {
  path: '/mall',
  component: Layout,
  name: '商城管理',
  meta: {
    title: '商城管理',
    icon: 'chart'
  },
  authority: 'mall',
  children: [{
    path: 'goodsManager',
    component: _import('mall/goods'),
    name: '商品列表',
    meta: {
      title: '商品列表',
      icon: 'chart',
      noCache: true
    },
    authority: 'goodsManager'
  }, {
    path: 'goodsCreate',
    component: _import('mall/goods/create'),
    name: '商品上架',
    meta: {
      title: '商品上架',
      icon: 'chart',
      noCache: true
    },
    authority: 'goodsCreate'
  }, {
    path: 'goodsEdit',
    component: _import('mall/goods/edit'),
    name: '商品编辑',
    meta: {
      title: '商品编辑',
      icon: 'chart',
      noCache: true
    },
    hidden: true,
    authority: 'goodsEdit'
  }, {
    path: 'goodsComment',
    component: _import('mall/goods/comment'),
    name: '商品评论',
    meta: {
      title: '商品评论',
      icon: 'chart',
      noCache: true
    },
    authority: 'goodsComment'
  }, {
    path: 'regionManager',
    component: _import('mall/region'),
    name: '行政区域',
    meta: {
      title: '行政区域',
      icon: 'chart'
    },
    authority: 'regionManager'
  }, {
    path: 'brandManager',
    component: _import('mall/brand'),
    name: '品牌制造商',
    meta: {
      title: '品牌制造商',
      icon: 'chart'
    },
    authority: 'brandManager'
  }, {
    path: 'categoryManager',
    component: _import('mall/category'),
    name: '商品类目',
    meta: {
      title: '商品类目',
      icon: 'chart'
    },
    authority: 'categoryManager'
  }, {
    path: 'orderManager',
    component: _import('mall/order'),
    name: '订单管理',
    meta: {
      title: '订单管理',
      icon: 'chart'
    },
    authority: 'orderManager'
  }, {
    path: 'issueManager',
    component: _import('mall/issue'),
    name: '通用问题',
    meta: {
      title: '通用问题',
      icon: 'chart'
    },
    authority: 'issueManager'
  }, {
    path: 'keywordManager',
    component: _import('mall/keyword'),
    name: '关键词',
    meta: {
      title: '关键词',
      icon: 'chart'
    },
    authority: 'keywordManager'
  }, {
    path: 'adManager',
    component: _import('mall/promotion/ad'),
    name: '广告列表',
    meta: {
      title: '广告列表',
      icon: 'chart'
    },
    authority: 'adManager'
  }, {
    path: 'topicManager',
    component: _import('mall/promotion/topic'),
    name: '专题管理',
    meta: {
      title: '专题管理',
      icon: 'chart'
    },
    authority: 'topicManager'
  }, {
    path: 'orderStat',
    component: _import('mall/stat/order'),
    name: '订单统计',
    meta: {
      title: '订单统计',
      icon: 'chart'
    },
    authority: 'orderStat'
  }, {
    path: 'goodsStat',
    component: _import('mall/stat/goods'),
    name: '商品统计',
    meta: {
      title: '商品统计',
      icon: 'chart'
    },
    authority: 'goodsStat'
  }]
}
export default MallMenu
